﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Microsoft.Practices.Unity;

using Farmacia.BussinessLogic;

namespace Farmacia.net.Compras.Proveedor
{
    public partial class frmModificarProvedor : BasePage<frmModificarProvedor> //System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var opc = Request.QueryString["acc"];

            if (opc != string.Empty)
            {
                if (opc == "editar")
                {
                    FormView1.ChangeMode(FormViewMode.Edit);
                } 
            }
        }
        
        protected void RucTextBox_TextChanged(object sender, EventArgs e)
        {

        }
                
        [Dependency]
        public iProveedorBL ProveedorBL { get; set; }

        protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = ProveedorBL;
        }
    }
}